package com.lcm.learn.lcmcode.collection;

import java.util.ArrayDeque;

/**
 * @description:
 * @author: lcm
 * @create: 2019-12-13 17:07
 **/

public class ArrayDequeTest {

    public static void main(String[] args){
        //ArrayDeque deque=new ArrayDeque(100);

        int initialCapacity = 100;
        initialCapacity |= (initialCapacity >>>  1);
        initialCapacity |= (initialCapacity >>>  2);
        initialCapacity |= (initialCapacity >>>  4);
        initialCapacity |= (initialCapacity >>>  8);
        initialCapacity |= (initialCapacity >>> 16);
        initialCapacity++;

    }
}
